import request from '@/utils/myrequest'
export function getList(kvs) {
  return request({
    url: '/ams/AlarmInfo/GetList',
    method: 'get',
    kvs
  })
}
export function getInfo(kvs) {
  return request({
    url: '/ams/AlarmInfo/Get',
    method: 'get',
    kvs
  })
}
export function doUpdate(kvs) {
  return request({
    url: '/ams/AlarmInfo/Update',
    method: 'POST',
    kvs
  })
}
export function exportHistory(kvs) {
  return request({
    url: '/ams/AlarmInfo/ExportHistory',
    method: 'get',
    kvs
  })
}
export function doAdd(kvs) {
  return request({
    url: '/ams/AlarmInfo/Add',
    method: 'POST',
    kvs
  })
}

export function handleDelete(kvs) {
  return request({
    url: '/ams/AlarmInfo/Delete',
    method: 'POST',
    kvs
  })
}

export function download(kvs) {
  return request({
    url: 'config/download/GetTemplate',
    method: 'get',
    kvs
  })
}
